package com.adprof.demo.natives.viewholders;

import android.view.View;
import android.widget.TextView;

import androidx.recyclerview.widget.RecyclerView;

import com.adprof.demo.android.R;

/**
 * 卡片内容ViewHolder - 用于展示卡片式内容
 * 同时支持RecyclerView和ListView
 */
public class CardViewHolder extends RecyclerView.ViewHolder {
    public TextView iconText, titleText, subtitleText, timeText, contentText;
    public TextView likeText, commentText, shareText;

    public CardViewHolder(View itemView) {
        super(itemView);
        iconText = itemView.findViewById(R.id.icon_text);
        titleText = itemView.findViewById(R.id.title_text);
        subtitleText = itemView.findViewById(R.id.subtitle_text);
        timeText = itemView.findViewById(R.id.time_text);
        contentText = itemView.findViewById(R.id.content_text);
        likeText = itemView.findViewById(R.id.like_text);
        commentText = itemView.findViewById(R.id.comment_text);
        shareText = itemView.findViewById(R.id.share_text);
    }
}
